package org.jakim.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "Language")
public class Language implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5984125180188231636L;

	@Id
	@GeneratedValue
	@Column(name = "LANGUAGE_ID")
	private Integer languageId;
	
	@ManyToOne
	@JoinColumn(name = "SKILLS_ID")
	private PersonalSkill personalSkill;
	
	@Column(name = "LANGUAGE_NAME")
	private String languageName;
	
	@Column(name = "LANGUAGE_READING")
	private String languageReading;
	
	@Column(name = "LANGUAGE_LISTENING")
	private String languageListening;
	
	@Column(name = "LANGUAGE_INTERACTION")
	private String languageInteraction;
	
	@Column(name = "LANGUAGE_PRODUCTION")
	private String languageProduction;
	
	@Column(name = "LANGUAGE_WRITING")
	private String languageWriting;
	
	public Language(){
		
	}

	public Language(String languageName,
			String languageReading, String languageListening,
			String languageInteraction, String languageProduction,
			String languageWriting ) {
		super();
		this.languageName = languageName;
		this.languageReading = languageReading;
		this.languageListening = languageListening;
		this.languageInteraction = languageInteraction;
		this.languageProduction = languageProduction;
		this.languageWriting = languageWriting;
	}

	public Integer getLanguageId() {
		return languageId;
	}

	public void setLanguageId(Integer languageId) {
		this.languageId = languageId;
	}

	public String getLanguageName() {
		return languageName;
	}

	public void setLanguageName(String languageName) {
		this.languageName = languageName;
	}

	public String getLanguageReading() {
		return languageReading;
	}

	public void setLanguageReading(String languageReading) {
		this.languageReading = languageReading;
	}

	public String getLanguageListening() {
		return languageListening;
	}

	public void setLanguageListening(String languageListening) {
		this.languageListening = languageListening;
	}

	public String getLanguageInteraction() {
		return languageInteraction;
	}

	public void setLanguageInteraction(String languageInteraction) {
		this.languageInteraction = languageInteraction;
	}

	public String getLanguageProduction() {
		return languageProduction;
	}

	public void setLanguageProduction(String languageProduction) {
		this.languageProduction = languageProduction;
	}

	public String getLanguageWriting() {
		return languageWriting;
	}

	public void setLanguageWriting(String languageWriting) {
		this.languageWriting = languageWriting;
	}
}
